package com.cubeofnine.sugar.service.element;

import java.util.HashMap;
import java.util.Map;

public class EntryValue {
	private String id = "";
	private String moduleName = "";
	private Map<Object, NameValue> nameValueList = new HashMap<Object, NameValue>();

	public EntryValue() {
	}

	public EntryValue(String id, String moduleName,
			Map<Object, NameValue> nameValueList) {
		this.id = id;
		this.moduleName = moduleName;
		this.nameValueList = nameValueList;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public Map<Object, NameValue> getNameValueList() {
		return nameValueList;
	}

	public void setNameValueList(Map<Object, NameValue> nameValueList) {
		this.nameValueList = nameValueList;
	}

	public void addNameValue(Object key, NameValue value) {
		nameValueList.put(key, value);
	}

	@Override
	public String toString() {
		return "EntryValue [id=" + id + ", moduleName=" + moduleName
				+ ", nameValueList=" + nameValueList + "]";
	}

}
